void print_howTo()
{
	int y = 0, i;
	char buffer[60];

	keypad(stdscr, TRUE);
	clear();

        fp = fopen("how_to.txt", "r");        /* Opens file for reading. */

        while(fgets(buffer, 60, fp) != NULL)    /* Reads and prints the txt file line by line. */
        {
                y++;
                mvprintw(y, 0, "%s", buffer);
        }

        fclose(fp);

	refresh();

	while((i = getch()) != 10) {}
}

void print_intro()
{
        int y = 0, i;
        char buffer[100];

	keypad(stdscr, TRUE);
        clear();

        fp = fopen("intro.txt", "r");        /* Opens file for reading. */

        while(fgets(buffer, 100, fp) != NULL)    /* Reads and prints the txt file line by line. */
        {
                y++;
                mvprintw(y, 0, "%s", buffer);
        }

        fclose(fp);

	refresh();

	while((i = getch()) != 10) {}
}

void print_scores()
{
	int y = 4, i;
	char buffer[30];

	keypad(stdscr, TRUE);
	clear();
	
	mvprintw(1, 33, "HIGH SCORES");
	mvprintw(3, 8, "EASY");
	mvprintw(3, 35, "MEDIUM");
	mvprintw(3, 64, "HARD");
	refresh();

	fp = fopen("highscore_list_e.txt", "r");

	while(fgets(buffer, 30, fp) != NULL)
	{
		y++;
		mvprintw(y, 1, "%s", buffer);
	}

	fclose(fp);
	refresh();
	
	y = 4;
	fp = fopen("highscore_list_m.txt", "r");

	while(fgets(buffer, 30, fp) != NULL)
	{
		y++;
		mvprintw(y, 28, "%s", buffer);
	}

	fclose(fp);
	refresh();
	
	y = 4;
	fp = fopen("highscore_list_h.txt", "r");

	while(fgets(buffer, 30, fp) != NULL)
	{
		y++;
		mvprintw(y, 60, "%s", buffer);
	}

	fclose(fp);

	mvprintw(20, 3, "Press ENTER to return to menu.");
	refresh();

	while((i = getch()) != 10) {}
}
